<!--{block return}-->
<!--{if $_G['cache']['plugin']['renren']['rr_customfeed']}-->
<script type="text/javascript">
function rrpermcheck() {
	var rrfeedbox = document.getElementById("rrfeed");
	if(rrfeedbox.checked){
	XN.Connect.showPermissionDialog('publish_feed',function(ok){if(!ok){rrfeedbox.checked="";}});
	}
}
</script>
<!--{/if}-->
<!--{if $_G['gp_action'] == 'newthread'}-->
	<p class="mbn"><input type="checkbox" id="rrfeed" name="rrfeed" class="pc" value="1"<!--{if $iffeed[0]}--> checked="checked"<!--{/if}--><!--{if $_G['cache']['plugin']['renren']['rr_customfeed']}--> onclick="rrpermcheck();"<!--{/if}--> /><label for="rrfeed"> {lang renren:rr_feedthread} </label><img    src="source/plugin/renren/template/image/rr.png" /></p>
<!--{elseif $_G['gp_action'] == 'reply'}-->
	<p class="mbn"><input type="checkbox" id="rrfeed" name="rrfeed" class="pc" value="1"<!--{if $iffeed[1]}--> checked="checked"<!--{/if}--><!--{if $_G['cache']['plugin']['renren']['rr_customfeed']}--> onclick="rrpermcheck();"<!--{/if}--> /><label for="rrfeed"> {lang renren:rr_feedreply} </label><img    src="source/plugin/renren/template/image/rr.png" /></p>
<!--{/if}-->
<!--{if !$perm}-->
<script type="text/javascript">
if(document.all) {
	window.attachEvent('onload',rrpermcheck);
} else {
	window.addEventListener('load',rrpermcheck,false);
}
</script>
<!--{/if}-->
<!--{/block}-->